#pragma once
#include "Stdafx.h"
#include "Object3D.h"

namespace Pulpy
{
	class Decal : public Object3D
	{
	private:
		float _Life;
		unsigned short _SpriteIndex;
	public:
		Decal(): Object3D() {}
		Decal(float w, float h, float life, unsigned short index): Object3D(w, h, 1, 0, false), _Life(life), _SpriteIndex(index) { };
		unsigned short getSpriteIndex() { return _SpriteIndex; }
		void drawDecal(float minX, float minY, float maxX, float maxY, const Vector3D<float> &v, float filterDist = 50.0f);
	};
}